<%@page import="java.util.Locale"%>
<%@page import="java.util.ResourceBundle"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.sql.Date"%>
<%@page import="com.googlecode.objectify.Query"%>
<%@page import="server.Utils"%>
<%@page import="model.Articles"%>
<%@page import="java.util.ArrayList"%>
<%@page import="javax.cache.CacheException"%>
<%@page import="java.util.Collections"%>
<%@page import="javax.cache.CacheManager"%>
<%@page import="javax.cache.Cache"%>
<% request.setCharacterEncoding("utf-8"); %>
<%
Query<Articles> list = (Query<Articles>) request.getAttribute("list");
SimpleDateFormat dt = new SimpleDateFormat("MM-dd-yyyy");
ResourceBundle resource = ResourceBundle.getBundle("language",
		new Locale("en"));
%>

<jsp:include page="/layout/header.jsp">
	<jsp:param name="title" value='<%=resource.getString("title_search") %>'/>
	<jsp:param name="description" value='<%=resource.getString("description_search") %>'/>
	<jsp:param name="keywords" value='<%=resource.getString("keyword_search") %>'/>
</jsp:include>

	<div class="bd">
		<div class="bdl">
			<%@ include file='/adv/250x250.jsp'%><br/><br/>
			<%@ include file='/adv/250x250.jsp'%>
		</div>
		<div class="bdr">
			<h2><%=resource.getString("search") %></h2>
			<hr size="1"/>
			
			<form action="/search" id="cse-main-search-box">
	<input type="hidden" name="cx"
		value="<%=resource.getString("cx") %>" /> <input type="hidden"
		name="cof" value="FORID:10" /> <input type="hidden" name="ie"
		value="UTF-8" /> <input id="cse-main-search-text" type="text"
		name="q" autocomplete="on" class="input_search" style="width:450px;"/> <input type="submit" name="sa"
		value="Search" />
</form>
<script type="text/javascript" src="//www.google.com/jsapi"></script>
<script type="text/javascript">
	google.load('search', '1');
	google.setOnLoadCallback(function() {
		google.search.CustomSearchControl.attachAutoCompletionWithOptions(
				'013315504628135767172:d6shbtxu-uo+qptype:1', document
						.getElementById('cse-main-search-text'),
				'cse-main-search-box', {
					'styleOptions' : {
						'widthOffset' : 150
					}
				});
	});
</script>

<div id="cse-main-search-results"></div>
<script type="text/javascript">
	var googleSearchIframeName = "cse-main-search-results";
	var googleSearchFormName = "cse-main-search-box";
	var googleSearchFrameWidth = 728;
	var googleSearchDomain = "www.google.com";
	var googleSearchPath = "/cse";
</script>
<script type="text/javascript"
	src="http://www.google.com/afsonline/show_afs_search.js"></script>
			
		</div>
	</div>
<style type="text/css">
	#cse-main-search-results iframe {
    height: 1400px;
    width: 620px;
}
.gs-webResult{
width: auto;
}
</style>
<%@ include file='/layout/footer.jsp'%>			